<script language="JavaScript">
var xmw_xmlHttp =null;
function finish()
{

    
    if (xmw_xmlHttp.readyState == 4) 
    {
        var response = xmw_xmlHttp.responseText;
        var ret="xxx"+response;
        
        if( ret == "xxx")
        {
            alert("Server not responsible!");
            return;
        }
        
        if ( ret =="xxxOK" )
        {
            alert("ximenwai will trace it for you ");
            return;
        }
        if( ret == "xxxBAD_URL")
        {
            alert("current page illegal");
            return;
        }
        
        alert("unknown error");
        return;
}

try
{
    xmw_xmlHttp= new XMLHttpRequest();
    
    urlm= "http://localhost:8080/";
    xmw_xmlHttp.open("GET", urlm, true);
    xmw_xmlHttp.onreadystatechange = finish;
    xmw_xmlHttp.send(null);
    
    /*
    var parentwin=external.menuArguments;
    var doc=parentwin.document;
    alert(doc.title);
    alert(doc.getElementById("firstAuthor").innerHTML);
    alert (chrType );
    */
    
}catch(e)
{
    alert("error:"+e);
}

</script>